<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<!-- Body -->
<div class="panel panel-default" >
    <div class="panel-heading" >
        Details
    </div>
    <div class="container-fluid">
        <form:form class="form-horizontal" id="loginForm" action="${pageContext.request.contextPath}/customer/edit" method="post" modelAttribute="customer">
            <div class="row">
                <div class="form-group">
                    <label class="col-md-3 control-label">Voornaam</label>
                    <div class="col-md-3">
                        <form:input class="form-control" type='text' path='name' placeholder="voornaam"/>
                    </div>
                </div>                   
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="col-md-3 control-label">Achternaam</label>
                    <div class="col-md-3">
                        <form:input class="form-control" type='text' path='lastname' placeholder="achternaam"/>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="col-md-3 control-label">Adres</label>
                    <div class="col-md-3">
                        <form:input class="form-control" type='text' path='streetAddress' placeholder="straat"/>                    
                    </div>
                    <div class="col-md-2">
                        <form:input class="form-control" type='text' path='houseNumber' placeholder="nummer"/>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="col-md-3 control-label">Woonplaats</label>
                    <div class="col-md-3">
                        <form:input class="form-control" type='text' path='city' placeholder="stad" />
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="col-md-3 control-label">Telefoonnummer</label>
                    <div class="col-md-3">
                        <form:input class="form-control" type='text' path='telephone1' placeholder="telefoon"/>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="col-md-3 control-label">Email</label>
                    <div class="col-md-3">
                        <form:input class="form-control" type='text' path='email' placeholder="email"/>                            
                    </div>
                </div>
            </div>
            <hr/>
            <form:input type="hidden" path="vestigingID" value='${customer.vestigingID}'/>
            <form:input type="hidden" path="klantnummer" value='${customer.klantnummer}'/>
            <form:input type="hidden" path="id" value='${customer.id}'/>

            <div class="col-md-3"></div>
            <input class="btn" id="submit" name="submit" type="submit" value="Opslaan"/>
        </form:form>
    </div>
</div>